#pragma once
#include "RegisterAppInfo.h"
#include <string>
#include <map>
using namespace std;
class RegisterdAppInfoManager
{
public:
	RegisterdAppInfoManager(void);
	~RegisterdAppInfoManager(void);
	map<string, RegisterAppInfo> m_registerInfoMap;
	BOOL Init();
	BOOL Save();
	BOOL AddRegisterInfo(const RegisterAppInfo info);
	BOOL GetRegisterInfoByExePath(string exePath, RegisterAppInfo &info);
	BOOL GetAndRemoveFirstRegisterInfo(RegisterAppInfo &info);
	BOOL RemoveRegisterInfo(string exePath);
	void DeleteRegisterFile();
	BOOL GetRegisterInfoByInstallPath(string installPath, RegisterAppInfo &info);
	WCHAR m_configFilePathName[MAX_PATH];
};
